package com.yanqu.road.entity.kowloon.battle;

import java.util.ArrayList;
import java.util.List;

/**
 * 战斗数据
 */
public class KowloonBattleData {

    /**
     * 随机种子
     */
    private int randomSeed;

    /**
     * 战斗好汉数据
     */
    private List<KowloonBattleHeroData> heroDataList = new ArrayList<>();


    /**
     * 战斗敌人数据
     */
    private List<KowloonBattleEnemyData> enemyDataList = new ArrayList();

    /**
     * 摊位血量
     */
    private int hp;

    /**
     * 是否胜利
     */
    private boolean isWin;


    public KowloonBattleData clone() {
        KowloonBattleData battleData = new KowloonBattleData();
        battleData.setRandomSeed(this.randomSeed);
        for (KowloonBattleHeroData battleHeroData : this.heroDataList) {
            battleData.getHeroDataList().add(battleHeroData.clone());
        }
        for (KowloonBattleEnemyData enemyData : this.enemyDataList) {
            battleData.getEnemyDataList().add(enemyData.clone());
        }
        battleData.setHp(this.hp);
        battleData.setWin(this.isWin);
        return battleData;
    }

    public int getRandomSeed() {
        return randomSeed;
    }

    public void setRandomSeed(int randomSeed) {
        this.randomSeed = randomSeed;
    }

    public List<KowloonBattleHeroData> getHeroDataList() {
        return heroDataList;
    }

    public void setHeroDataList(List<KowloonBattleHeroData> heroDataList) {
        this.heroDataList = heroDataList;
    }

    public List<KowloonBattleEnemyData> getEnemyDataList() {
        return enemyDataList;
    }

    public void setEnemyDataList(List<KowloonBattleEnemyData> enemyDataList) {
        this.enemyDataList = enemyDataList;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public boolean isWin() {
        return isWin;
    }

    public void setWin(boolean win) {
        isWin = win;
    }
}
